public class CraftItem {
    private String itemName;
    private String category;
    private int craftYear;
    private String craftsman;
    private String description;

    // 构造方法，用于初始化属性
    public CraftItem(String itemName, String category, int craftYear, String craftsman, String description) {
        this.itemName = itemName;
        this.category = category;
        this.craftYear = craftYear;
        this.craftsman = craftsman;
        this.description = description;
    }

    // 判断工艺品是否为古董
    public boolean isAntique() {
        return craftYear < 1900; 
    }

    // 输出工艺品信息，包括是否为古董的信息
    public void displayInfo() {
        System.out.println("工艺品名称: " + itemName);
        System.out.println("工艺品类别: " + category);
        System.out.println("制作年份: " + craftYear);
        System.out.println("工匠名字: " + craftsman);
        System.out.println("简短描述: " + description);
        if (isAntique()) {
            System.out.println("这个工艺品是古董。");
        } else {
            System.out.println("这个工艺品不是古董。");
        }
    }

    public static void main(String[] args) {
        // 创建几个代表性的传统工艺品对象并显示信息
        CraftItem item1 = new CraftItem("青花瓷", "陶瓷", 1800, "张三", "精美的青花瓷作品。");
        CraftItem item2 = new CraftItem("木雕屏风", "木雕", 1950, "李四", "精湛的木雕工艺品。");
        CraftItem item3 = new CraftItem("铜制佛像", "铜雕", 1750, "王五", "古老的铜制佛像。");

        System.out.println("工艺品1信息：");
        item1.displayInfo();

        System.out.println("\n工艺品2信息：");
        item2.displayInfo();

        System.out.println("\n工艺品3信息：");
        item3.displayInfo();
    }
}